import service from './service';

export const Login = params => service.post('/access/login', params);

export const GetAssetInfo = params =>
  service.post('/config/getAssetInfo', params);

export const GetVersion = params => service.post('/config/getVersion', params);

export const GetUsername = params => service.post('/user/getUsername', params);

export const GenerateUserKeys = params =>
  service.post('/keystore/generateUserKeys', params);

export const GetUserKeys = params =>
  service.post('/keystore/getUserKeys', params);

export const GetWechatWorkUserId = params =>
  service.post('/kyc/getWechatWorkUserId', params);

export const SaveMnemonicInfo = params =>
  service.post('/account/saveMnemonicInfo', params);

export const GetMnemonicByUserId = params =>
  service.post('/account/getMnemonicByUserId', params);

export const ClearMnemonicByUserId = params =>
  service.post('/account/clearMnemonicByUserId', params);

export const BcosSendTx = params =>
  service.post('bcos/sendTransaction', params);

export const GetBalanceOf = params => service.post('bcos/balanceOf', params);

export const BcosCall = params => service.post('bcos/call', params);

export const BcosQueryTxList = params =>
  service.post('bcos/queryTxList', params);

export const GetWeWorldPrivateKey = params =>
  service.post('/weworld/getWeWorldPrivateKey', params);

export const GetTransferList = params =>
  service.post('/datascan/getTransferList', params);

export const GetDuibaUrl = params =>
  service.post('/beanManager/getDuibaUrl', params);

export const GetDuibaBuyList = params =>
  service.post('/beanManager/getDuibaBuyList', params);

export const GetDuibaWithdrawUrl = params =>
  service.post('/beanManager/getDuibaWithdrawUrl', params);

export const GetYuandouTxListUrl = params =>
  service.post('/indexing/getTxListUrl', params);

export const BcosGetBlockNumber = params =>
  service.post('/bcos/getBlockNumber', params);

export const RedpackGetAccountByUserId = params =>
  service.post('/redpack/getAccountByUserId', params);

export const RedpackClaim = params => service.post('/redpack/claim', params);

export const KycRegister = params => service.post('/cids/register', params);

export const KycUpdate = params => service.post('/cids/update', params);

export const KycGetChannelCpt = params =>
  service.post('/cids/getChannelCpt', params);

export const KycGetContractAddress = params =>
  service.post('/cids/getContractAddress', params);

export const RelayGetToken = params => service.post('/relay/getToken', params);

export const GetExploreInfo = params =>
  service.post('/config/getExploreInfo', params);

export const GetBannerInfo = params =>
  service.post('/config/getBannerInfo', params);

export const SearchExploreInfo = params =>
  service.post('/config/searchExploreInfo', params);

export const CorpKycUserValidate = params =>
  service.post('/cids/validateUserId', params);

export const CorpKycAddresValidate = params =>
  service.post('/cids/validateAddress', params);

export const UpdateCorpKycAddress = params =>
  service.post('/cids/setCorpAddress', params);

export const GetAppUpdateInfo = params =>
  service.post('/config/getAppUpdateInfo', params);

export const HkSendCode = params => service.post('/hk/sendCode', params);

export const HkRegister = params => service.post('/hk/register', params);

export const HkRegisterStatus = params => service.post('/hk/registerStatus', params);

export const HkLogin = params => service.post('/hk/login', params);

export const GetUserAssetListByType = params =>
  service.post('/assetSeries/userAssetListByType', params);

export const GetCollectionTypeOwnedByUser = params =>
  service.post('/assetSeries/collectionTypeOwnedByUser', params);

export const GetAssetSeries = params =>
  service.post('/assetSeries/getByType', params);

  export const GetAssetListByAddressList = params =>
  service.post('/assetSeries/assetListByAddressList', params);

  export const GetAssetListBySingleAddress = params =>
  service.post('/assetSeries/assetListBySingleAddress', params);

  export const GetAssetDetailUrl = params =>
  service.post('/assetSeries/getAssetDetailUrl', params);

  export const GetAssetDetailInfo = params =>
  service.post('/assetSeries/getAssetDetailInfo', params);